<?php
namespace Common\Model;
use Think\Model;
class TypeModel extends Model{
	protected $tableName = 'type';
	protected $patchValidate=true;
	protected $_validate=array(
			array('name','/^\S{1,24}$/','分类名称长度为1-8位'),//验证分类名不能为空
			array('fid','/^\d+$/','请输入正确的格式')
			); 
	
}